/**
 * 
 */
package com.sx.article.dao;

import java.util.List;

import com.sx.article.entity.ArticleAndAttachmentEntity;
import com.sx.article.entity.AttachmentEntity;
import com.sx.feesunit.exception.SXException;

/**
 * @author Administrator
 *
 */
public interface IAttachmentDao {
	/**
	 *删除数据附件信息 
	 **/
	public boolean deleteAttachment(AttachmentEntity attachemt);
	/**
	 *按照ID编号获取附件信息
	 **/
	public AttachmentEntity findAttachmentInfoById(Integer id) ;
	/**
	 *新增文章与附件关联信息 
	 **/
	public boolean addAttachmentByArticleId(ArticleAndAttachmentEntity articleattachment);
	/**
	 *删除文章与附件关联信息 
	 **/
	public boolean deleteAttachmentByArticleId(ArticleAndAttachmentEntity articleattachment);
	/**
	 * 已经上传的图片文件信息
	 **/
	public String findAttachmentsInfoCount(AttachmentEntity attachemt); 
	/**
	 *  已经上传的图片文件信息
	 **/
	public List<AttachmentEntity> findAttachmentsInfo(AttachmentEntity attachemt);
	/**
	 *新增附件信息 
	 **/
	public Integer addAttachment(AttachmentEntity attachment);
}
